add base name to resources