parse_token in parse_args
some cleaning