auto change local dir