remove the pico_buffer class and use pico_record instead