changed publish signature / added a send method