simplify code by allowing importAllMethods