move append-to into util-package