initialize working directory