wrap atFlush func
lots of docs