update to latest chiara api
update hooks to new API