non-std mem error handling