added some ideas from asteven and a bit more description about the order
in the manpage
forgot the : after the else ...