added local csv support