ECA groundwork, functions, hooks