modified resource manager 1st working copy