revamp CHK_OUT macro