refactor tyna api in own blueprint