Update default url of client

problem when not specifying the URL when calling factory function