adding sec critical and interop exception attributes