working prototype with standalone endpoint