new pin api
Merge pull request #4 from tessel/jh-pin-api

new pin api