rough draft of backend architecture done