add helper methods for converting buffer file formats