adde frontend dir and index.php