adding log file generation script