added gen.php