make email server an obj