request to server, background functions