Optimization of thermal and mechanical properties of bio-polymer based nanocomposites