skeleton of main worker