correct scripts and logs