fixing problems with resources