figure out directories