move recordWorker to public