begin moving to keeping app state on server. the app is probably broken right now but the shape of the code is what i want it to be