added codes to help debug user activity stream