make fn-registry dynamic