generate.php added