optimize performance of hook references, directly resolve them