fix deploying scripts for night environment