wrote scaffold for in/out buffers