quick and easy fix for threading issues