adapt activeml to new amt api