added mod3 and debugstats