automatic import detection