find out which directory is which