set up directories correctly;