simplified how destination directory is obtained