small tweaks to script. improve messages to user