add server-side debuging