add callback handling when server is badly configured