redo logging a little
prevent endless message loops when recieving a bug in query