added logging in schema to disable logging if needed