updated factory so we can keep smpt config options in seperate config file