use local server when appropriate