added proxy and directDomain options