switch from state to path