fixed log output for mod and normal case