minor changes to modernize.sh
some more modernize