extract shell setup in ShellObject class