dirname potential