minor tweaks so items are always added at end