Stat flush changes and fixes
Changes to put-getn to test flush