parse_flags adjustment