fixed huge concurrency problem

(forgot to use green threads...)