sketched out module import algorithm