FIX: setFactory method