use Pathname and cleanpath helpers