replaced old write calls with vmsplice and splice for perf boost