added a proxy for rest api