don't use deprecated methods on env management