use of new Container factory code