fix for deploy and publish command