break endpoint appending out into seperate class