add a function to get the path to the dat file