support top level instanceof