allow specification of data.dir