improved mess detector config