added DEBUG_MB flag