added support for multiple bash history sessions