splitting between refresh and re-rendering + refreshing resources in a more clever way to avoid issues with bug resources