detect runtime errors in selfcheck