added poison-checking functions for all the operations that need it