moved ain2 to being an optional dependency