changing to work with new pin API
Merge pull request #3 from tessel/jh-pin-api

changing to work with new pin API