adjust before boot and boot event