adapted to using softserial on the arduino side