included TODO
better handling of no specified output_dir