adding fixes for deploy scripts