preliminary setup on main.php