shell logic WIP