fixed stuff so local host works