updated the get_tag to configure automatically regions