more robust initial resource declaration