trying to fix an 'resource failed with error' msg