adapted to changes in libbase api