make directories where the output will go