get target and app name from args.