save top directory in log commands