locate: handle modtypes