uses the right directories