removed hard coding to localhost