Logging stuff
Fix for direct urls