should also be protected by if(this.schema) ?