move schema into a seperate file