Clarification on hooks and environment config