working with code ported from ublind and simple serial out of processing