change the environment hooks to not be templates anymore