hacked-up version of concurrency