added support for publishing presence