new script for logons and logoffs