auto_run: improve worker class