mudec_connection refactoring