adding a little more structure to processing worker