data transfer server logic