better handling of const method invoker