add debug level handover between preinit and main process