samain structure header