added support for batch adding activities