fix adapter types