fixing deployment script issues