apparently, this fixes memory leak issue
fix off-by-one index error
the simplest worker that actually works