safetycheck for lib itself; now requirejs compatible