run before swift-proxy