fixed parsing of arguments (and commented on changes)
replace awk hackery with IFS sophisicatory and used with logs and triggers from