added bullet to handle disconnects and XHR