moved from howto repro
added for loop
rearranged scripts from howto repro