speced out the server and structured the app