buffer mode state
main.rs rust open
