better comments in resource manager