code reorganisation
bugfix for listwalk