add ability to dump schema as json - likely temporary