add dirname constant