updated to work with csvextractor