changed assembly discovery routine