fixed buffering, now working with 2prus