tweak shell logic