added ability to log an activity