fixes for deploy script