added callback parameter to amazon spice to