misc: add bdec and benc