merge problems and connectivity