added ability to use module path in factories instead of object