stats and bugfix