start script and loging