prototype responding to messages