setting proxy properly