WIP: getResources read metadata end decrypt