expose rebuildall function in api