improving deployment script so that we don't need to rely on crontab