Apps can hook in their own locator.

Adds #7.
if gid is not going to be used use _ instand