add factory loading debug output