draft code for gossipping