fixes for method injection