works again

moddief it to work with class resources