added some debug stuff to test the client