add type of communication to an actor (fix #13)