from http://openpear.org/package/IO_Bit