fix readFrom, return merged message
format code