locally import UserEmail and some util functions instead of globally