dialog survives different states. so far so good. now error checking. osx, windows....