BUG: explicitly define the output directory