no memcpy; unix line endings
std::copy instead of memcpy