adapt to new moneta version