return false when not connected