less than ideal set-pin-mode
initial stab at a functional wrapper on top of bonescript