add activity logging