fix extend, add bulk register