remove import of threading outside of method call