added tmp and addmail to collection