add scripts to maintain the log