added fetch func for webapp integration