add optional flag to save to flush or not