Better logging, actually make sure URL uses resource name
Fix reference, actually export the class
LOGGING because wtf is with no stack traces