tidy up. proxy server only works manually