support NSURL type