bug fix in deployment scripts