improve the container api in order not to be able to call the run method twice