annotationType => type
add regex options to select_element, fix Relation element names