add memory checker