don't use instanceof check
0.1.2