implement simple web worker