updating callback plugin to send json