adding msgs to log