Enhancement: put IMC handling into separate class

nothing special but copy paste and some local variables
"write access only by the constructor"?