invoke funcrefs a different way, resolves #115.