added spritekit support to 'tree' and fixed some requires bugs