improve recdir update