stats and gui fixes