this halts processing until ui shows that output