switched dlerror availability detection