invokeMethod instead of switch/case