fine tune index.php
remove unused functions