multiple input (activities) support

Signed-off-by: Sean Nicholls <seannicholls@gmail.com>