init adapter