datasrc code for generic and efficient column handling (work in progress)