WIP: initial implementation of schemas