replace native system calls with new qserialport