some fixes for the deploy script