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

new pin api