validate schema
fexed major lack of exporting