generate.php further complete