add filesystem management for data collection. Not yet complete