changed connection from localhost to location.host