add logs to script