app logic added to msg service