make init/free functions of DPB its constructor/destructor