replace all uses of module::kernel pointer with kernel::instance singleton pointer