Support localhost plus refactoring