adding activity flag, closes #146