Added error logging, scripts update to a newest versions