resources hook