added check for existing logs and scp to web server