add change_*_dir method