fix memory leakage
add a tool to test single builder for large file