hopefully fixed shell logic.