add more support for getting activities