logging temp tested working

keeps file open