fixed dirname...