replace lookup-param-from-restserver and add  to function call