minor improvement of datadir