stats module switch elimination (#37)