halfway through adding email queu procesing