re-build resources