add update method. Finish 1.0 lib-less build