add hooks for registering callbacks on load