figured out dirname oversight, removed debug stub