dbgmem
 - added __xxx_chk functions
 - added checks for wcs function
 - compiles in release mode
wrong add