clean up refactoring using sendy api