use url object
fix fatal