complete the logoff/automsg script