added server-side function-call method