improve start/stop script