buff added and postMessage optimized