serializer end lines with newline