secret MD framework