fix inbuf overrun
change debug level