tweaked tail script and whats logged