further progress on algo1_flashmodel