change server to URL of API server