continuing work on integrating flash writing