added urlresolver option
cleaner auth error handling
urlresolver dependency