section generation prototype. not tested