update to new API