better handling of factories list