added method to reload a resource