adapt create_tag.sh