fix some connection issues between mediator and mom5 cap