added get csv functionality