move home path and config vars to index.php