adapted lifecycle contributor to deal with multiple containers and added email trigger