simplify setpath