not working, a lot's changed #wip
refactor schema config