started working on server logic