fixing issues with resources