working with messages clientside