well, it works now. seems like serial.inWaiting() was the thing that hung. hell if i know why