refactored csv part into its own file - removed some useless imports