added wrapping msg logging method to make it work
added wrapping msg logging method to make it work