fixing up rebuild engine
added file moving to rebuild.php