updated example to fit with the new path lib