fixes for deployment scripts