fn new_session(path: &Path) -> Result<Session>