added support for schema file