adapt to avocadobase.