backing up to github - API functional, but needs refactor