start/stop script generation works properly now