add build stats endpoint