add format_tag and format_label
add validation