replace server with local