changed to worker process
removed cache code