import type bugfix
pattern detection (WIP)