initial support for creating instances of factory configurations, some code cleanup