working ioservice finally but buggy transistor class