now with getDataForPins method

Andy - remember not to merge this until I figure out the weird bug where we are losing 1 pin in the new method
good idea