remove 'isFunction' rpc call; wire up 'type' return