improve connection stability, specially with multiple windows