relocate schema to separate file