add buffer loading