agent start script fixed