replace hardcoded path with DATAPATH variable