add getenv for datapath to make it universal