add ability to specify a base directory to output plots to