hook config