o.c.sds.history: some code cleanup