added newline to logmsg