removed localhost detection, it doesnt fit in this module