added switch to directory