some more optimizations; asserts turned off in release