changed server to localhost for testing