add the possibility to run functions defined in models