make a working instance for cxx-callable function