loadschema method updated