Working on server flow