integrated handleOSC and fixed self.i