update shell modes