BROKEN: in the middle of restructuring spreadlib/