setting up transport and mime handling with factories