fixed routing of localhost