generalized to running fake calculations in parallel and sending results asynchronously to front end