refactored bytes to buffers, keeping it in function names as it makes sense. hopefully nothing broke