remap caps to control
scratch buffer function