added parse_tag_input