back to threading. functions unpickleable