add buildstatistics (by Radek Augustyn)