update to new apis