change way of local change directory