changed msg to have a payload