add param_spec and return_spec to call in worker