set up working directories