moved email installation function usage