use actual host rather than 'localhost'