added asserts for bughunting