fixing schema and other stuff for the pi