add method by name