fixes on deploy and publish command