moved csv parsing to main entry point for extension