another go at resumption loop