fixes broken sending of q; secret now received correctly, but there seems to be still a problem with the signature; better debug output