Updating dir and cpr