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

new pin api