add buffered queues

this increases write performance by 400%