remove seldomly used commit function
move buffering_sink to a new header
move then to a new header