made adjustments to figure out how to recieve messages