THE COMPLEX ENVIRONMENT OF AO 0235+164