vnet outputstrem fix and factorymanager bug fix