fixed ioloops
fixed rest