sham rack tested and bugfix