call lambda function only for :url and :path