fixing server processing callback - now it works, but doesn't mark processed items as such (line 109)