res map and doc