workaround for amazon calling callback twice. See #23