run a function by id