offline resource handling