minor change for spin the eventloop