update to work with latest hails