improved email templates. improved session control.