solve resources file problem