able to take csv as file input