added myproxy support. various fixes