worker: improve code with newly created library infox_worker;