updated the localhost support