updated serial communication - two-way