changed MyState to IState
changed MyState to IState
changed run to checkStream