handle publicMessages