added an auto refresh when waiting for stuff to happen. this happens inline, and should definitely be changed to something less hacky