Correct usage of dpath and match