now the script produces some useful output