add proxy support

@brianrogers Please take a look