line ordering , logging to msg.log