fixed speed problems and added more generation scripts