deploy needs to know version prefix; refactor common parts of clone/deploy