clean up browser/proxy logic