prepare for new kernel (mirage)