updated csv loading script