incorporate file directory; remove constant, replace with global var for data dump