fixing bug with proxy url, adding more debug to logger