CHG: add dir for bak function