add subtype in schema/buffer.js