simplify the usage of init-hook: no additional name required