refactor container launch process