added new hook for the resources plugin