fixed mutability in resource manager