added module association + moved sendmail to parallel thread