removed hard coded localhost