added back several features, like usage of ahg, autopair etc