moving imports out of conftest methods