Fix case where class exists but method doesn't
adding in class method wrapper