moved proxy stuff into corsProxy