use less reflection in command line method invocation