add debug for loader failed