this feels a bit brittle. not sure if there's a better solution, but it just seems unintuitive. guessing there's no easy way to unstrangle the email code from having to put this here though?