change 'extend' to 'update'

seems that you've changed your API and extend method was renamed