add option to rebuild