added basic functionality of proxy