move thread module to local