improved activity logging