adding directory history.