changed rotate argv code and fixed start script