expose connection states for user-land