improved url::to method