WIP - core datastructures and interfaces for canary.io