catch and throw in map.render