change stage and module to thread