some modifications for nb consensus