started adding write pausing and write cancelation support