connection to localhost now working