fist step of reading args.