bisect: refactor over rel
SessionStore: resolve dir path
SessionStore: parametize type