fix contracts and priorities on registration