serial communication setup