basic functionality of chating