fix directory problem
add missing modules to funcitons.php