improve deploy tool