added schemaDirectory option