next refactor b-blib