threading errors added