integrated first part of csv uploader