fixing typo pointed by Chris Snow in pull-request-4 and improvements to deployment framework