added server logic
server logic with different status