added beginning of csv stuff