bugfix: wrapper_url not declared on new_resource

Inlined url call, also to make code more readable.