more speed optimizations
Merge branch 'master' into nook