add base name to resources
use base name instead of name
base name method for resources