fix bugs for SL confirmation emails and general study