got the run loop figured out
tidy up