adding support for external activities