encapsulated stuff

recieving messages doesn't work