add rebuild function

faster than a series of push operations
Release 1.2.0