implementing schema loading