container factory: port to es6