register fix, now provides proper object in callback