get the right directories