added convenience method for emit message