WIP show how to refactor isam_perror