more loopfiles fixes