add pig resource loading