implementing support to directory history