change the path invocation and add .dat