update environment hooks