refactoring: simplifying initialization of shell