add callbacks for onsubscribe / error