fixed __init__ issue with hook_object arg