he later found that , although this new world looked like earth of the middle ages , it had certain amenities , such as running water , sanitation and irrigation , that were all made possible by magic .