allow instance_methods hook