refactored, added getSchemaFromFile method