cleanup adapter