fixed start script to work correctly with the init script