fix classloader resource loading