rename registerAll to discover