tried to fix smtp bug