json like anonymous funcitons