fixes for threading method scope