fixed new logging, which didn't work