fixed csv stuff