stats rest wrapper