make hook save for all shells