add path property to schemas
make Schema a EventEmitter