fix to callbacks for proper client side errors