add localhost distinction