client: add state to current thread