main: dont use g_ctx before properly initialized