improve require support (get the schema of the required resource)