some cleanups in loopincontrol.cpp