changed check for incoming bytes

Hopefully improves things a lot