messy WIP for talking to backend API