place thread modules in a service