factored out email assigner