i am not sure how to get a callback when its done writing to disk