moved automimport to a more logical place