instanceOf does not work across different versions (of course)