merging with code by Steffi Benthin
Authored by: berndspeiser 2012-04-10
Parent: [r1077]
Child: [r1079]