renamed to registerCallback, it made a lot more sense