fixing server call with previous api