added functionality for importing csv