added runtime function to clear local buffers, but had no affect, there's something definitely wrong with data transfers