moved print debugging to getStatHandler