fixed bug with depth-first processing on DCI objects, other minor changes