document factory handlers
why map-like?
move the SELECT block to the end