reformatted arg process, fixed NPE