moved schema to seperate file