moved locator function to node module