go to start state when /end received
some tweaks