total string length might be well over 2GB here so use in64_t too