koios.on(), koios.off(), code cleanup