changed 127.0.0.1 to localhost for Mac OS X