logging and schema stuff