more robust testing and error checking