changed how callbacks send messages to client