the library works, I had forgotten to connect reset to vcc so the register was resetting at random