added try/except handling state changes to a state that doesnt exist