upgrade of context/env method in addon