fixed all the stupid localhost calls