update loader, now handles more scenarios of mis-behaving modules