almost working with endpoint calls although the architecture is a bit unexpected.