fixed import detection