started thread wrapper