adding scripts to generate log