improved config-append-list() function