added debug stuff to server