update to new chain API