main: check that outputs are available before running main loop