-update to new API