re-enabled preparekernel lines