fixes to issues loading for detection