refactor
extract key locator content
extract name format