add patch method
extract recursively defined resources