fixed bugs with threads in interface and server errors