add cd logic
Merge pull request #2 from ClarkGH/cd

add cd logic