implemented options for service factories from xml.