moved csv parsing