improve ha.distributed by storing state in session, if there is a session
resolve conflicts