writing logs to different values. need to fix extranuous file creation