changes to spinnman to reflect register callbacks (NOT TESTED FULLY)