generalize activity tracker