fixing compatibility issues with csv upload