use filename for data gathering as well