appending a buffer is not easy in node i guess