wip fix for refreshing buffers