start of testing shell.  not sure how we can unit test this.