fixup buffers
fixup resolution