using writeline instead of write to the port. Did not work