clean up dodecdeploy
factor out http references from main functions