add support for passing in key
Merge pull request #1 from sharathprabhal/origin/support-key

add support for passing in key