use $(hostname) rather than localhost