handle redirect urls
allow arbitrary case in state transition