sky: get rid of fickle instanceof calls