Switching of dir