fix schema and config