the core api and setup logic for metageo