script changes for logs