update function call to new interface from rust-url